﻿/*------------------------------------------------
// File Description: s_model_lain DataBase Entity
// Author:			 Crane
// Create Time:		 2021-05-11 12:17:17
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.OldMes.DataAccess.Entity
{
	/// <summary>
	/// 
	/// </summary>
	[Table("s_model_lain")]
	public class ModelLain
	{
		private string _solar_no = string.Empty;
		private string _work_order = string.Empty;
		private string _weld_machine = string.Empty;
		private string _la_no = string.Empty;
		private string _la_size = string.Empty;
		private string _acc_no_jp = string.Empty;
		private string _acc_no_mf = string.Empty;
		private string _set_op1 = string.Empty;
		private string _set_op2 = string.Empty;
		private string _set_class = string.Empty;
		private string _set_no = string.Empty;

		#region Public Property

		///<Summary>
		/// id
		///</Summary>
		public int id { get; set; }

		///<Summary>
		/// solar_no
		///</Summary>
		public string solar_no
		{
			get { return string.IsNullOrWhiteSpace(_solar_no) ? string.Empty : _solar_no; }
			set { _solar_no = value; }
		}

		///<Summary>
		/// work_order
		///</Summary>
		public string work_order
		{
			get { return string.IsNullOrWhiteSpace(_work_order) ? string.Empty : _work_order; }
			set { _work_order = value; }
		}

		///<Summary>
		/// in_time
		///</Summary>
		public int? in_time { get; set; }

		///<Summary>
		/// weld_machine
		///</Summary>
		public string weld_machine
		{
			get { return string.IsNullOrWhiteSpace(_weld_machine) ? string.Empty : _weld_machine; }
			set { _weld_machine = value; }
		}

		///<Summary>
		/// la_no
		///</Summary>
		public string la_no
		{
			get { return string.IsNullOrWhiteSpace(_la_no) ? string.Empty : _la_no; }
			set { _la_no = value; }
		}

		///<Summary>
		/// la_size
		///</Summary>
		public string la_size
		{
			get { return string.IsNullOrWhiteSpace(_la_size) ? string.Empty : _la_size; }
			set { _la_size = value; }
		}

		///<Summary>
		/// acc_no_jp
		///</Summary>
		public string acc_no_jp
		{
			get { return string.IsNullOrWhiteSpace(_acc_no_jp) ? string.Empty : _acc_no_jp; }
			set { _acc_no_jp = value; }
		}

		///<Summary>
		/// acc_no_mf
		///</Summary>
		public string acc_no_mf
		{
			get { return string.IsNullOrWhiteSpace(_acc_no_mf) ? string.Empty : _acc_no_mf; }
			set { _acc_no_mf = value; }
		}

		///<Summary>
		/// set_op1
		///</Summary>
		public string set_op1
		{
			get { return string.IsNullOrWhiteSpace(_set_op1) ? string.Empty : _set_op1; }
			set { _set_op1 = value; }
		}

		///<Summary>
		/// set_op2
		///</Summary>
		public string set_op2
		{
			get { return string.IsNullOrWhiteSpace(_set_op2) ? string.Empty : _set_op2; }
			set { _set_op2 = value; }
		}

		///<Summary>
		/// set_class
		///</Summary>
		public string set_class
		{
			get { return string.IsNullOrWhiteSpace(_set_class) ? string.Empty : _set_class; }
			set { _set_class = value; }
		}

		///<Summary>
		/// set_no
		///</Summary>
		public string set_no
		{
			get { return string.IsNullOrWhiteSpace(_set_no) ? string.Empty : _set_no; }
			set { _set_no = value; }
		}

		///<Summary>
		/// set_time
		///</Summary>
		public DateTime? set_time { get; set; }
		#endregion
	}

	public partial class OldMESContext
	{
		/// <summary>
		/// 
		/// </summary>
		public virtual DbSet<ModelLain> ModelLains { get; set; }
	}
}